package com.example.qinghe.service.communication;


import com.example.qinghe.dao.communication.EnterpriseMapper;
import com.example.qinghe.entity.communication.Enterprise;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * AdminService业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-29
 */
@Service
public class EnterpriseService
{

    @Autowired
    public EnterpriseMapper dao;
    //查看详细的组织架构信息
    public Enterprise  detail(Long id)
    {
        return dao.detail(id);
    }
    //根据id查看该id下的组织
    public List<Enterprise> sel(Long id)
    {
        return dao.sel(id);
    }


    public List<Enterprise> selAll() {
        return dao.selAll();
    }

    public void adddepart(Enterprise enterprise) {
        int adddepart = dao.adddepart(enterprise);
        System.out.println("adddepart:"+adddepart);
    }
}
